import Vue from 'vue';
import App from './App.vue';
import router from './router';

Vue.config.productionTip = false;

//引入elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

//网络请求
import http from "@/request/index";

import store from './store'

Vue.prototype.$http = http;

//引入全局样式
// import "@/assets/scss/style.scss";

//全局混入
Vue.mixin({
    methods: {
        getAuthHeader() {
            return {
                Authorization: `Bearer ${localStorage.token || ""} `
            }
        }
    }

})

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
